package com.example.demo.service;

import com.example.demo.param.LoginParam;
import com.example.demo.param.OperatorFindAllParam;
import com.example.demo.param.OperatorSaveParam;
import com.example.demo.param.OperatorUpdateParam;
import com.example.demo.vo.*;

/**
 *@Description 操作员业务层
 *@Author Levi
 *@Date 2019/4/23-16:45
*/
public interface OperatorService {
    ApiResult<Long> save(OperatorSaveParam operatorSaveParam) throws Exception;

    ApiResult<Long> update(OperatorUpdateParam operatorUpdateParam) throws Exception;

    ApiResult<OperatorVO> findById(Long id) throws Exception;

    ApiResult<Long> deleteById(Long id) throws Exception;

    ApiResult<PageVO<OperatorPageVO>> findAll(OperatorFindAllParam operatorFindAllParam) throws Exception;

    ApiResult<LoginVO> login(LoginParam loginParam, Long ip) throws Exception;
}
